package com.chesnutconsulting.otbasket.mail;

import com.chesnutconsulting.otbasket.util.FileUtil;

import java.io.File;
import java.util.Map;
import java.util.UUID;


public class ImageInfoAtom {
    private File watermarkedImageFile;
    private final String contentId;

    private Map<String, String> metadata;
    private String comment;
    private final String derivedAssetId = null;
    
    private String imageFileName = null;
    
    private String assetId = null;
    
    public Map<String, String> getMetadata() {
        return metadata;
    }

    public void setMetadata(Map<String, String> metadata) {
        this.metadata = metadata;
    }

    public File getWatermarkedImageFile() {
        return watermarkedImageFile;
    }

    public void setWatermarkedImageFile(File watermarkedImageFile) {
        this.watermarkedImageFile = watermarkedImageFile;
    }

    public ImageInfoAtom(File watermarkedImageFile) {
        this.watermarkedImageFile = watermarkedImageFile;
        this.contentId = UUID.randomUUID().toString();
//        this.derivedAssetId = FileUtil.removeExtension(watermarkedImageFile.getName());
    }

    public String getContentId() {
        return contentId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getDerivedAssetId() {
        return derivedAssetId;
    }

	public String getAssetId() {
		return assetId;
	}

	public void setAssetId(String assetId) {
		this.assetId = assetId;
	}

	public String getImageFileName() {
		return imageFileName;
	}

	public void setImageFileName(String imageFileName) {
		this.imageFileName = imageFileName;
	}
}
